package net.csdn.business.common.domain.vo.pages;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.constant.CommonConstants;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: PagesRepoVO
 * @Description:
 * @Author: zhangyl
 * @Date: 2024/6/14 14:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PagesRepoVO implements Serializable {
    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 仓库默认分支
     */
    private String branchName;

    /**
     * 仓库path
     */
    private String path;

    /**
     * 命名空间
     */
    private String nameSpace;


    /**
     * pages的url
     */
    private String pageUrl;

    /**
     * pages的状态：0:关闭;1:开启
     */
    private Boolean status;

    /**
     * 仓库id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long repoId;

    @JsonFormat(pattern = CommonConstants.DEFAULT_PATTERN, timezone = CommonConstants.DEFAULT_TIMEZONE)
    protected Date createdDate;
}
